/**
 * Created by IntelliJ IDEA.
 * User: NadiaPC
 * Date: 23.02.11
 * Time: 21:20
 * To change this template use File | Settings | File Templates.
 */
package controller
{
    import model.LogProxy;
    import model.UserProxy;

    import org.kolonitsky.alexey.debug.DebugWrapper;
    import org.puremvc.as3.interfaces.INotification;
    import org.puremvc.as3.patterns.command.SimpleCommand;

    /**
     *  LogGetCommand
     */
    public class LogGetCommand extends SimpleCommand
    {
        override public function execute(notification:INotification):void
        {
            var period:String = notification.getBody() as String;

            DebugWrapper.trace("INFO: CMD > LogGetCommand, " + period);

            var logProxy:LogProxy = facade.retrieveProxy(LogProxy.NAME) as LogProxy;
            logProxy.getLogRange(period);
        }
    }
}
